<template>
  <router-view />
</template>

<script>
  import {
    checkResData
  } from './utils/selfInfoUtil.js'
  export default {
    data() {
      return {
        t: 2.5 * 60 * 1000
      }
    },
    created() {
      this.myInterval()
    },
    methods: {
      mytest() {
        this.$axios.post('/user/keepAlive')
        this.myInterval()
      },
      // 设置定时任务,2分半心跳检测
      myInterval() {
        setInterval(this.mytest, this.t);
      }
    }
  }
</script>

<style>
  html,
  body {
    width: 100%;
    height: 100%;
    margin: 0;
  }
</style>
